﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Model
{
    public class PageMode
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        public List<Guestroomorder> List { get; set; }
    }

    /// <summary>
    /// 线上订单表
    /// </summary>
    [Table("AccommodationOrder")]
    public class Guestroomorder
    {
        /// <summary>
        /// 客房订单ID
        /// </summary>
        public int AId { get; set; }

        /// <summary>
        /// 用户下单时间
        /// </summary>
        public string ABgTime { get; set; }

        /// <summary>
        /// 用户下单名称
        /// </summary>
        public string AUserName { get; set; }

        /// <summary>
        /// 用户预定天数
        /// </summary>
        public int ADay { get; set; }

        /// <summary>
        /// 用户入住时间
        /// </summary>
        public string ARuzhu { get; set; }

        /// <summary>
        /// 本次订单金额
        /// </summary>
        public string AMoney { get; set; }


        [ForeignKey("Guestroomtype")]
        public int AHomeTyle { get; set; }

        /// <summary>
        /// 用户所需客房类型
        /// </summary>
        public Guestroomtype Guestroomtype { get; set; }

    }              		
}                  		
